package com.dayuanit.pokergame;

/**
 * 扑克类
 */
public class Poker {
    //扑克的名称
    private String name;
    //扑克的花色
    private String color;
    //扑克的权重 也就是分值
    private int weight;

    @Override
    public String toString() {
        return "Poker{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                ", weight=" + weight +
                '}';
    }

    public Poker(String name, String color, int weight) {
        this.name = name;
        this.color = color;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public String getColor() {
        return color;
    }

    public int getWeight() {
        return weight;
    }
}
